#ifndef CLIENT_H
#define CLIENT_H


#ifdef __cplusplus
extern "C"
{
#endif

#include <stdio.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>



#ifdef __cplusplus
}
#endif

#include <iostream>


using namespace std;

class Menu
{
public:
    Menu(char *names,char *bmp_path,int prices,int counts=100)
    {
        strcpy(this->names,names);
        strcpy(this->bmp_path,bmp_path);
        this->prices=prices;
        this->counts=counts;
    }

public:
    char names[64];//菜品名字
    char bmp_path[64];//菜品路径
    int  prices;//菜品价格
    int  counts;//菜品数量

};

class Client
{
public:
    Client();
    void Connect_the_Server();
    void ClienttoServer(Menu &m);
    //void Clienttoserver(unsigned int value);

    ~Client();

    int getsockfd()
    {
        return sock_fd;
    }
private:
    int sock_fd;
};




#endif/*CLIENT_H*/
